Fix -xen builds.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 18 Oct 2005 18:28:16 +0000 (19:28 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 18 Oct 2005 18:28:16 +0000 (19:28 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/arch/xen/kernel/smpboot.c
linux-2.6-xen-sparse/include/asm-xen/asm-i386/smp.h

index 20f96c0da34c335f2fa13b056f6ee8f78faa8e4a..a0ec7cff1f2c6eb43bd401dde8627a96e24ab0ac 100644 (file)
@@ -74,10 +74,10 @@ cpumask_t cpu_sibling_map[NR_CPUS] __cacheline_aligned;
 cpumask_t cpu_core_map[NR_CPUS] __cacheline_aligned;
 EXPORT_SYMBOL(cpu_core_map);
 
-#ifdef __i386__
+#if defined(__i386__)
 u8 x86_cpu_to_apicid[NR_CPUS] = { [0 ... NR_CPUS-1] = 0xff };
 EXPORT_SYMBOL(x86_cpu_to_apicid);
-#else
+#elif !defined(CONFIG_X86_IO_APIC)
 unsigned int maxcpus = NR_CPUS;
 #endif
 
index 427f6c8a38713c53fac5ec09842f3960cee25559..cf404f492bc0bdb31603f000684c672c149dda1f 100644 (file)
@@ -54,6 +54,7 @@ extern u8 x86_cpu_to_apicid[];
 #define __smp_processor_id() (current_thread_info()->cpu)
 
 extern cpumask_t cpu_possible_map;
+#define cpu_callin_map cpu_possible_map
 
 /* We don't mark CPUs online until __cpu_up(), so we need another measure */
 static inline int num_booting_cpus(void)